package com.alex.statistics.pojo.request.explorationAnalysis;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "DBSCAN异常检测请求参数")
public class DBSCANRequest {
    @Schema(
            description = "多维数据点集合(每个子数组代表一个数据点的所有维度值)",
            required = true,
            example = "[[1.2,3.4], [2.3,4.5], [5.6,6.7], [20.0,30.0]]"
    )
    private List<List<Double>> points;

    @Schema(
            description = "邻域半径",
            required = true,
            example = "1.5"
    )
    private Double eps;

    @Schema(
            description = "最小邻域点数",
            required = true,
            example = "2"
    )
    private Integer minPts;

    private DBSCANRequest() {
    }

    public static DBSCANRequest createDBSCANRequest() {
        return new DBSCANRequest();
    }
}